#pragma once
#include "core/CColor.h"
#include "OImage.h"

class PbrMaterial {
public:
	PbrMaterial() = default;

	void setTextureImage(OImage* textureImage) { texture = textureImage->toTexture2D(); }
	bool hasTexture() const { return texture != nullptr; }

	CColor baseColor;
	float metallic, roughness;
	osg::ref_ptr<osg::Texture2D> texture = nullptr;
};